package com.zhihuishu.micro.course.service;

import com.zhihuishu.micro.course.dto.CourseFolderDto;
import com.zhihuishu.micro.course.dto.CourseFolderRootAndDirDto;

import java.util.List;

/**
 *
 * table-CC_FOLDER
 * dto-CourseFolder
 * @author Jiangli
 * @date 2016/12/16 13:15
 */
public interface CCFolderTreenityService extends TreenityBatchService<CourseFolderDto>{

    CourseFolderRootAndDirDto findRootAndDir(Long courseId, String folderName);

    //刷新&自动命名dto的文件夹名字  防止重名
    CourseFolderDto refreshUniqueName(CourseFolderDto dto, long updateUserId);

    List<Integer> findDirectChildren(List<Integer> folderIds);

    List<Integer> findAllChildren(List<Integer> folderIds);

    CourseFolderDto updateAndGet(CourseFolderDto dto, long updateUserId);
}
